#!/bin/bash
cc74="../cc74/build/cc74"

rm -rf *.s
rm -rf *.clst
rm -rf *.alst
rm -rf *.bin
rm -rf *.hex

srcs=(mxpbasic.c)
for src in ${srcs[*]}
do
	echo Compile $src
	lst=`basename -s .c $src`.clst
	$cc74 $src &> $lst || echo Compile $src failed! 
	grep TODO $lst
done
